import type { ISearchConfig } from "@/components/PageSearch/index.vue";
import SysFileAPI from "@/api/sysFile/index";

const searchConfig: ISearchConfig = {
  pageName: "sysFile",
  moreConditionFields: [
     {name:'id', label:'自增id', type:'input' },
     {name:'fileName', label:'文件名称', type:'input' },
     {name:'filePath', label:'文件路径', type:'input' },
     {name:'fileSize', label:'文件大小(字节)', type:'input' },
     {name:'uploadUserName', label:'上传者', type:'input' },
     {name:'uploadUser', label:'上传者id', type:'input' },
     {name:'createTime', label:'创建时间', type:'input' },
     {name:'updateTime', label:'更新时间', type:'input' },
  ],
  formItems: [
    {
      type: "input",
      label: "自增id",
      prop: "id",
      attrs: {
           placeholder: "请输入自增id",
           clearable: true,
           style: {
              width: "200px",
           },
      },
    },
    {
      type: "input",
      label: "文件名称",
      prop: "fileName",
      attrs: {
           placeholder: "请输入文件名称",
           clearable: true,
           style: {
              width: "200px",
           },
      },
    },
    {
      type: "input",
      label: "文件路径",
      prop: "filePath",
      attrs: {
           placeholder: "请输入文件路径",
           clearable: true,
           style: {
              width: "200px",
           },
      },
    },
    {
      type: "input",
      label: "文件大小(字节)",
      prop: "fileSize",
      attrs: {
           placeholder: "请输入文件大小(字节)",
           clearable: true,
           style: {
              width: "200px",
           },
      },
    },
    {
      type: "input",
      label: "上传者",
      prop: "uploadUserName",
      attrs: {
           placeholder: "请输入上传者",
           clearable: true,
           style: {
              width: "200px",
           },
      },
    },
    {
      type: "input",
      label: "上传者id",
      prop: "uploadUser",
      attrs: {
           placeholder: "请输入上传者id",
           clearable: true,
           style: {
              width: "200px",
           },
      },
    },
  ],
};

export default searchConfig;
